{include file="public/header" /}
<style type="text/css">
    #des, #des input {
        width: 40px;
        text-align: center;
    }

    #id {
        width: 78px;
    }

    .bs-checkbox {
        width: 36px;
        height: 40px
    }

    .fixed-table-toolbar .columns, .fixed-table-toolbar .search {
        margin-left: 0;
        margin-top: 0;
    }

    #title span {
        float: right;
    }

    .btn-active {
        background: #1ab394;
        color: #fff
    }
</style>
<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="ibox float-e-margins">
        {include file="public/tophead"}
        {include file="public/top" /}
        <div class="ibox-content">
            <div class="row row-lg">
                <div class="col-sm-12">
                    <div class="fixed-table-toolbar">
                        <a class="btn btn-default btn-outline{if input('get.type/s') eq ''} btn-active{/if}" href="{:url('PhotoAlbum/index',['type' => 'today'])}">所有记录</a>
                        <a class="btn btn-default btn-outline{if input('get.type/s') eq 'today'} btn-active{/if}" href="{:url('PhotoAlbum/index',['type' => 'today'])}">今日记录</a>
                    </div>
                    <div style="display:block;clear: both;"></div>
                    <div class="fixed-table-toolbar">
                        <form method="get" action="">
                            <div class="pull-left search">
                                <div class="columns columns-right btn-group pull-left">
                                    <select class="form-control" name="type">
                                        <option value="member_id">用户ID</option>
                                    </select>
                                </div>
                                <div class="pull-right search">
                                    <button style="border-radius:0px; border:1px solid #e5e6e7; border-left:0px"
                                            class="btn btn-default btn-outline" type="submit">搜索
                                    </button>
                                </div>
                                <div class="pull-right search">
                                    <input class="form-control input-outline" type="text" name="text" value="{:input('get.text', '')}" />
                                </div>
                            </div>
                        </form>
                    </div>
                    <div class="example">
                        <form class="form-horizontal" method="post">
                            <table data-toggle="table">
                                <thead>
                                    <tr>
                                        <th data-align="center">相册用户ID</th>
                                        <th data-align="center">相册用户头像</th>
                                        <th data-align="center">相册用户昵称</th>
                                        <th data-align="center">消费（元）</th>
                                        <th data-align="center">查看用户ID</th>
                                        <th data-align="center">查看用户昵称</th>
                                        <th data-align="center">时间</th>
                                    </tr>
                                </thead>
                                <tbody>
                                {volist name="data" id="vo"}
                                <tr>
                                    <td>{$vo.view_member_id}</td>
                                    <td>
                                        {if !empty($vo.avatar)}<a href="{$vo.avatar}" target="_blank">{/if}
                                        <img src="{if empty($vo.avatar)}__PUBLIC__/disk/avatar/user-default.jpg{else}{$vo.avatar}{/if}" width="40" height="40" />
                                        {if !empty($vo.avatar)}</a>{/if}
                                    </td>
                                    <td>{$vo.view_nickname|default="--"}</td>
                                    <td>{if $vo.payment_amount > 0}{$vo.payment_amount}{else}使用特权次数查看{/if}</td>
                                    <td>{$vo.member_id}</td>
                                    <td>{$vo.nickname|default="--"}</td>
                                    <td>{$vo.pay_time|date="Y-m-d H:i:s"}</td>
                                </tr>
                                {/volist}
                                </tbody>
                            </table>
                        </form>
                    </div>
                </div>
            </div>
            <hr>
            <div class="row row-lg">
                <div class="col-sm-12 pages">{$page|raw}</div>
            </div>
        </div>
    </div>
</div>
{include file="public/footer" /}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.css"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table.min.js"}
{load href="__STYLE__/admin/plugins/bootstrap/bootstrap-table-zh-CN.min.js"}